package com.ruoyi.contrctrefund.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.contarct.domain.HouseContarct;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退租对象 house_contrct_refund
 * 
 * @author hct
 * @date 2022-02-16
 */
@Data
public class HouseContrctRefund extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 合同id */
    @Excel(name = "合同id")
    private Long contractid;

     
    /** 附件 */
    @Excel(name = "附件")
    private String refundfile;

    /** 退租原因 */
    @Excel(name = "退租原因")
    private String refundreason;

    /** 退租时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退租时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refundtime;

   
    /** 合计金额（收正退负） */
    @Excel(name = "合计金额", readConverterExp = "收=正退负")
    private BigDecimal refundMoney;

    /** 应收金额 */
    @Excel(name = "应收金额")
    private BigDecimal ysMoney;

    /** 应退money */
    @Excel(name = "应退money")
    private BigDecimal ytMoney;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer confirmStatus;

    /** 确认时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "确认时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date confirmDate;

    /** 确认人 */
    @Excel(name = "确认人")
    private String confirmUserName;

    /** 确认人 */
    @Excel(name = "确认人")
    private Long confirmId;


    private HouseContarct contarctData;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractid", getContractid())
            .append("createTime", getCreateTime())
            .append("refundfile", getRefundfile())
            .append("refundreason", getRefundreason())
            .append("refundtime", getRefundtime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("refundMoney", getRefundMoney())
            .append("ysMoney", getYsMoney())
            .append("ytMoney", getYtMoney())
            .append("customerId", getCustomerId())
            .append("confirmStatus", getConfirmStatus())
            .append("confirmDate", getConfirmDate())
            .append("confirmUserName", getConfirmUserName())
            .append("confirmId", getConfirmId())
            .toString();
    }
}
